<div class="container o2oc-login-register-panel">
    <div class="col-lg-4 col-md-6" style="float:none;margin:100px auto 0 auto;">
        <div class="panel panel-default">
            <div class="panel-heading">
                <h3 class="panel-title">O2O[C] - Login</h3>
            </div>
            <div class="panel-body">
                <div class="alert alert-danger" role="alert" ng-show="errorMsg">{{ errorMsg }}</div>
                <form ng-submit="doLogin($event)">
                    <input type="text" class="form-control" placeholder="Username" ng-model="loginInfo.name" ng-focus="errorMsg = errorMsg ? 'Please input correct username and password' : null">
                    <input type="password" class="form-control" placeholder="Password" ng-model="loginInfo.password" ng-focus="errorMsg = errorMsg ? 'Please input correct username and password' : null">
                    <a type="button" ui-sref="register" class="btn btn-default">Register</a>
                    <input type="submit" class="btn btn-primary" value="Login">
                </form>
                
            </div>
        </div>
    </div>
</div>